package com.grj.parking.drools.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 用户违约记录表
 * @TableName user_violation_record
 */
@TableName(value ="user_violation_record")
@Data
public class UserViolationRecord implements Serializable {
    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 违约类型：NO_SHOW-爽约，OVERSTAY-超时未离场
     */
    @TableField(value = "violation_type")
    private String violationType;

    /**
     * 关联预约ID
     */
    @TableField(value = "reservation_id")
    private Long reservationId;

    /**
     * 违约金
     */
    @TableField(value = "penalty")
    private BigDecimal penalty;

    /**
     * 状态：UNHANDLED-未处理，HANDLED-已处理
     */
    @TableField(value = "status")
    private String status;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}